<?php

namespace App\Models\Pay ;

use Illuminate\Database\Eloquent\Model;

class SysPaytype extends Model
{

    protected $table = 'sys_paytype';

    protected $primaryKey = 'payTypeID';

    public $timestamps = false;

    public $incrementing = false;


    public static function getList( $args_array ) {

        $where = [];

        if ( !isset( $args_array['type'] ) ) {
            $where[] = [ 'type' , '=' , $args_array['type'] ];
        }

        if ( !isset( $args_array['useFlg'] ) ) {
            $where[] = [ 'useFlg' , '=' , $args_array['useFlg'] ];
        }

       return self::where($where)->get()->toArray();

    }

}
